/**
 * Created by sicongdu on 18-4-11.
 */

var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/mern-starter');

//student information
var students_schema = mongoose.Schema({
  studentNo: String, //id
  classNo: String,
  name: String,
  userInfo: String,
  sex: String,
  school: String
});

var students = mongoose.model('students', students_schema);

// //students passwords
// var students_pass_schema = mongoose.Schema({
//     studentNo: String,
//     pass: String
// });
//
// var students_pass = mongoose.model('students_pass_' + new Date().getFullYear() + "s", students_pass_schema);

module.exports = {
  students: students,
  // students_pass: students_pass
};
